{template 'admin','header'}
    
    <form action="admin/role.php?action=del_all" name="form1"  method="POST" onsubmit="return r_submit(this);">
    <table cellpadding="0" cellspacing="1" class="table_list">
        <caption>留言管理</caption>
        <tr>
            <th width="80" class="align_c"><input type="checkbox" onclick="checkall(this,'rid')" id="chkall">全选/取消</th>
            <th width="5%">ID</th>
            <th>提交时间</th>
            <th>咨询类别</th>
            <th>姓名</th>
            <th>联系方式</th>
            <th>内容</th>
        </tr>
        {loop $list $l}
        <tr>
            <td class="align_c">
                <input id="rid" name="rid[]" type="checkbox" id="checkbox"  value="{$l['id']}"/>
            </td>
            <td class="align_c">{$l['id']}</td>
            <td class="align_c">{date('Y-m-d H:i',$l['addtime'])}</td>
            <td class="align_c">{$type_list[$l['type']]}</td>
            <td class="align_c">{$l['truename']}</td>
            <td class="align_c">{$l['tel']}</td>
            <td class="align_c">{nl2br($l['content'])}</td>
           
        </tr>
        {/loop}
    </table>
    <div class="button_box">
        <input class="button_style" name="del" type="button" value=" 批量删除 " onclick="if(confirm('确定要删除选中的留言？')){change_opt('form1','{$self_dir}/message.php?action=del_all');}"/>
    </div>
    </form>
    <div id="pages">
        {$pages}
    </div>
{template 'admin','footer'}
